Skip to content

LCORE-1404: Updated config doc#1993

Merged
tisnik merged 1 commit into
lightspeed-core:mainfrom
tisnik:lcore-1404-cfg
Jun 25, 2026
Merged

LCORE-1404: Updated config doc#1993
tisnik merged 1 commit into
lightspeed-core:mainfrom
tisnik:lcore-1404-cfg

Conversation

@tisnik

@tisnik tisnik commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

LCORE-1404: Updated config doc

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-1404

Summary by CodeRabbit

  • Documentation
    • Expanded configuration docs with new unified-mode inference options.
    • Added guidance for provider lists, backend-specific synthesis settings, and how they relate to existing configuration fields.
    • Updated schema references and diagrams to reflect the latest configuration structure.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Adds unified-mode inference and Llama Stack configuration documentation across markdown, HTML, and JSON, introduces new unified provider/config schema sections, and updates the configuration PlantUML diagram. Also revises one ByokRag table entry’s wording and formatting.

Changes

Unified configuration docs

Layer / File(s) Summary
Unified field updates
docs/config.json, docs/config.md, docs/config.html
Adds providers to InferenceConfiguration and config to LlamaStackConfiguration across the schema docs.
Unified schema blocks
docs/config.json, docs/config.md, docs/config.html
Adds UnifiedInferenceProvider and UnifiedLlamaStackConfig definitions across the schema docs.
Diagram alignment
docs/config.puml
Updates the configuration class diagram with the new field shapes, unified types, and relationship wiring.

ByokRag table text

Layer / File(s) Summary
ByokRag text
docs/config.md
Reformats the ByokRag table text and escapes the score_multiplier comparison.

Estimated review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the changes, but it is too vague to convey the specific config documentation update. Use a more specific title, such as "Document unified-mode config schema updates" or similar.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/config.md`:
- Around line 808-809: The placeholder in the docs table for api_key_env is
being rendered as raw angle-bracket text, so update the Markdown in the config
docs to escape the placeholder inside the env reference and preserve the
intended literal ${env.<name>} format in generated HTML. Adjust the table entry
for api_key_env so the placeholder text is safely escaped while keeping the
surrounding description unchanged.
- Line 158: The `score_multiplier` description in the config docs contains an
escaped comparison typo that renders incorrectly. Update the text in the table
entry for `score_multiplier` so the comparison reads correctly as “less than 1”
instead of the malformed escaped sequence, keeping the rest of the
`docs/config.md` wording unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 44c77829-609f-4b99-a5a5-0ce5cfa16267

📥 Commits

Reviewing files that changed from the base of the PR and between ab86328 and 583305e.

⛔ Files ignored due to path filters (2)
  • docs/config.png is excluded by !**/*.png
  • docs/config.svg is excluded by !**/*.svg
📒 Files selected for processing (4)
  • docs/config.html
  • docs/config.json
  • docs/config.md
  • docs/config.puml
📜 Review details
⏰ Context from checks skipped due to timeout. (13)
  • GitHub Check: unit_tests (3.12)
  • GitHub Check: build-pr
  • GitHub Check: integration_tests (3.12)
  • GitHub Check: integration_tests (3.13)
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-on-pull-request
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-0-6-on-pull-request
  • GitHub Check: E2E: server mode / ci / group 1
  • GitHub Check: E2E Tests for Lightspeed Evaluation job
  • GitHub Check: E2E: library mode / ci / group 3
  • GitHub Check: E2E: server mode / ci / group 3
  • GitHub Check: E2E: library mode / ci / group 2
  • GitHub Check: E2E: library mode / ci / group 1
  • GitHub Check: E2E: server mode / ci / group 2
🔇 Additional comments (2)
docs/config.json (1)

891-898: LGTM!

Also applies to: 1067-1079, 1706-1781

docs/config.puml (1)

302-312: LGTM!

Also applies to: 358-382

Comment thread docs/config.md
| embedding_dimension | integer | Dimensionality of embedding vectors. |
| vector_db_id | string | Vector database identification. |
| db_path | string | Path to RAG database. Required for inline::faiss. |
| score_multiplier | number | Multiplier applied to relevance scores from this vector store. Used to weight results when querying multiple knowledge sources. Values > 1 boost this store's results; values &lt;; 1 reduce them. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix escaped comparison typo in score_multiplier description.

Line 158 has &lt;; which renders incorrectly. It should be &lt; 1.

Suggested fix
-| score_multiplier    | number  | ... Values > 1 boost this store's results; values &lt;; 1 reduce them. |
+| score_multiplier    | number  | ... Values > 1 boost this store's results; values &lt; 1 reduce them. |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| score_multiplier | number | Multiplier applied to relevance scores from this vector store. Used to weight results when querying multiple knowledge sources. Values > 1 boost this store's results; values &lt;; 1 reduce them. |
| score_multiplier | number | Multiplier applied to relevance scores from this vector store. Used to weight results when querying multiple knowledge sources. Values > 1 boost this store's results; values &lt; 1 reduce them. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/config.md` at line 158, The `score_multiplier` description in the config
docs contains an escaped comparison typo that renders incorrectly. Update the
text in the table entry for `score_multiplier` so the comparison reads correctly
as “less than 1” instead of the malformed escaped sequence, keeping the rest of
the `docs/config.md` wording unchanged.

Comment thread docs/config.md
Comment on lines +808 to +809
| api_key_env | string | Name of the environment variable holding the provider API key. Emitted as a ${env.<name>} reference so the secret is never written to disk in resolved form. |
| allowed_models | array | Optional allow-list of model identifiers for this provider. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Escape placeholder brackets to preserve ${env.<name>} in generated HTML.

At Line 808, <name> should be HTML-escaped in Markdown table text, otherwise downstream HTML rendering can lose the intended placeholder format.

Suggested fix
-| api_key_env    | string | Name of the environment variable holding the provider API key. Emitted as a ${env.<name>} reference so the secret is never written to disk in resolved form. |
+| api_key_env    | string | Name of the environment variable holding the provider API key. Emitted as a ${env.&lt;name&gt;} reference so the secret is never written to disk in resolved form. |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| api_key_env | string | Name of the environment variable holding the provider API key. Emitted as a ${env.<name>} reference so the secret is never written to disk in resolved form. |
| allowed_models | array | Optional allow-list of model identifiers for this provider. |
| api_key_env | string | Name of the environment variable holding the provider API key. Emitted as a ${env.&lt;name&gt;} reference so the secret is never written to disk in resolved form. |
| allowed_models | array | Optional allow-list of model identifiers for this provider. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/config.md` around lines 808 - 809, The placeholder in the docs table for
api_key_env is being rendered as raw angle-bracket text, so update the Markdown
in the config docs to escape the placeholder inside the env reference and
preserve the intended literal ${env.<name>} format in generated HTML. Adjust the
table entry for api_key_env so the placeholder text is safely escaped while
keeping the surrounding description unchanged.

@tisnik tisnik merged commit 76b0ba2 into lightspeed-core:main Jun 25, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant